<template>
	<view style="padding: 30rpx;">
		<view style="text-align: center;margin-bottom: 20rpx;">优惠明细</view>
		<view>
			<text style="color: #909090;">1、</text><text v-for="(item,itemIndex) in data.ruleList" :key="item.id"
				style="color: #df3325;">{{item.num}}件{{item.discount}}折
				<text v-if="itemIndex!==data.ruleList.length-1">，</text>
			</text>
			<view style="color: #909090;font-size: 24rpx;margin-left: 10rpx;">
				活动时间: {{data.data.activityStartTime}} ~ {{data.data.activityEndTime}}
			</view>
		</view>
	</view>
	</u-popup>
</template>

<script>
	export default {
		name: 'discount',
		props: {
			data: {
				type: Object,
				default: () => {
					return {}
				}
			}
		}
	}
</script>

<style lang="scss">

</style>
